End.
原
Centos7 Yum 升级最新版redis
可以到“这里”查看redis版本安装包。
依次执行以下命令,即可以完成redis版本升级
sudo yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
sudo yum --enablerepo=remi install redis -y
sudo systemctl restart redis
redis版本查询可以参考:《Redis INFO命令说明(可以查看redis当前连接数等)》- info server 命令
127.0.0.1:6379> info server
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:4ab9a06393930489
redis_mode:standalone
os:Linux 3.10.0-1062.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:8.3.1
process_id:986
process_supervised:systemd
run_id:cbe4f07d0dd253e0cb7332e957719fb71b97d325
tcp_port:6379
server_time_usec:1648904549160126
uptime_in_seconds:3078326
uptime_in_days:35
hz:10
configured_hz:10
lru_clock:4737381
executable:/usr/bin/redis-server
config_file:/etc/redis/redis.conf
io_threads_active:0
End.